package com.extra_archive.framework.core 
{
	import com.extra_archive.framework.core.mvc.controller.IController;
	import com.extra_archive.framework.core.mvc.model.IModel;
	import com.extra_archive.framework.core.mvc.view.IComponentView;

	import flash.display.MovieClip;
	import flash.display.StageScaleMode;
	import flash.events.Event;

	/**
	 * DocumentSprite
	 * @author implict (http://extra-archive.com)
	 * @date : 2010. 4. 24.
	 * @description :
	 */
	public class DocumentSprite extends MovieClip
	{
		protected var _model : IModel;
		protected var _controller : IController;
		protected var _view : IComponentView;
		
		public function DocumentSprite()
		{
			//addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
			initialize();
		}

		public function initialize() : void 
		{
			createModel();
			createController();
			createView();
		}
		
		protected function onAddedToStage(event : Event) : void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
			initialize();
		}

		protected function setupStage() : void 
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
		}

		protected function createModel() : void
		{
			
		}
		
		protected function createController() : void
		{
			
		}
		
		protected function createView() : void
		{
			
		}
	}
}
